package rbac.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.pandawork.core.entity.AbstractEntity;

/**
 * RBAC 权限类别实体.
 * 
 * @author Huadi
 */
@Entity
@Table(name = "t_rbac_permission_type")
public class RbacPermissionType extends AbstractEntity {

	private static final long serialVersionUID = 1736546804175952984L;

	// ---=== Fields ===--- //
	/** 类别 ID. */
	@Id
	@Column(name = "id", nullable = false, length = 11)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;

	/** 类别名称. */
	@Column(name = "name", nullable = false, length = 255)
	private String typeName;

	// ---=== Setters and Getters ===--- //
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the typeName
	 */
	public String getTypeName() {
		return typeName;
	}

	/**
	 * @param typeName
	 *            the typeName to set
	 */
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

}
